package com.sun.designPattern.Observer.baseImp;

import java.util.Observable;
import java.util.Observer;

public class testObServer implements Observer {

	@Override
	public void update(Observable obs, Object o) {
		Watched w = (Watched) obs;
		int i = (Integer) o;
		String ss = "11";
		String str = "";
		for (int a = 0; a < i; a++) {
			str = str + ss;
		}
		System.out.println(w.getInfo() + str);
	}

}
